package cn.stronglink.oil.entity;

import java.util.List;

/**
 * Created by Tgb on 2017/10/19.
 * 通用返回结果
 */

public class CommonResult<T> {

    /**
     * errorMessage : null
     * data : []
     * success : true
     */

    private String errorMessage;
    private boolean success;
    private T data;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

}
